-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref!(math-renderer): modularize image generation to make way for typst #1448
base: main
Are you sure you want to change the base?
Conversation
question: isn't this a breaking change, given the module name is now different? |
yes, but the other one hasn't released yet.. and I already forgot that latex rendering existed before my PR to make it better lol. Yea this should maybe be marked breaking |
0905775
to
ea925c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big fan of the changes! Just some things here and there.
3288a4c
to
085293d
Compare
I'll probably keep this for Neorg |
085293d
to
3fc936c
Compare
More or less what it says on the tin.
Extracts the latex specific image generation code into it's own module, and provides that module as configuration to the (now called) math-renderer. This opens up the possibility of other math renderers, the most notable being typst.
Down the road, the norg file format will hopefully have some standard way of specifying the math language, and then this module can be reworked again to take that into account (and possibly render typst and latex in the same document). But for now, user configuration that allows rendering either latex or typst seems like a good starting point.